package com.app.util.common;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class HandlerResult implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	private Integer code = 0;
	private String message;
	private Object obj;
	private Map<String,Object> map = new HashMap<String,Object>();
	
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Object getObj() {
		return obj;
	}
	public void setObj(Object obj) {
		this.obj = obj;
	}
	public Map<String, Object> getMap() {
		return map;
	}
	public void setMap(Map<String, Object> map) {
		this.map = map;
	}
	
	public void put(String key,Object value){
		this.getMap().put(key, value);
	}
	
	public Object get(String key){
		return this.getMap().get(key);
	}
	
	
}
